var express = require('express')
var router = express.Router()
const userService = require('../service/userService')

router.post('/user/login', userService.login);

router.post('/user/register', userService.register);

router.post('/user/vote', userService.vote);

router.post('/user/update', userService.updateUser);

router.post('/user/delete', userService.deleteUser);

module.exports = router